import request from '@/utils/request'

export function listCustomer(data) {
    return request({
      url: 'work/customerInfo',
      method: 'post',
      data: data
    })
  }

  // 修改tb
export function updateCustomer(data) {
    return request({
      url: '/work/customer',
      method: 'put',
      data: data
    })
  }
  
  // 删除tb
  export function delCustomer(text) {
    return request({
      url: '/work/customer/' + text,
      method: 'delete'
    })
  }

  export function addCustomer(data) {
    return request({
      url: '/work/customer',
      method: 'post',
      data: data
    })
  }
  